# Contributor: Jens Pranaitis <jens@jenux.homelinux.org>
# Contributor: Tino Reichardt <milky dash archlinux at mcmilk dot de>
pkgname=p0f
pkgver=2.0.8
pkgrel=1
pkgdesc="passive OS fingerprinting tool"
arch=("i686")
license=("GPL")
depends=("libpcap")
url=http://lcamtuf.coredump.cx/p0f.shtml
source=(http://lcamtuf.coredump.cx/p0f/$pkgname-$pkgver.tgz)
md5sums=('1ccbcd8d4c95ef6dae841120d23c56a5')

build() {
	cd "${srcdir}"/p0f
	make
	mkdir -p "${pkgdir}"{/usr/sbin,/etc/p0f,/usr/share/man/man1}
	cp p0frep p0f "${pkgdir}"/usr/sbin
	cp p0f.fp p0fa.fp p0fr.fp p0fo.fp "${pkgdir}"/etc/p0f
	cp p0f.1 "${pkgdir}"/usr/share/man/man1
}
